package cn.cloud9.designpattern.dp07decorator.origin;

/**
 * @projectName: Java
 * @author: 戴知舟
 * @date: 2022年05月24日 10:55
 * @version: 1.0
 */
public class DecoratorTest {
    public static void main(String[] args) {

        Pancake pancake = new Pancake();
        System.out.println(pancake.getMessage() + " " + pancake.getPrice());
        pancake = new PancakeWithFriedEggs();
        System.out.println(pancake.getMessage() + " " + pancake.getPrice());
        pancake = new PancakeWithFriedEggsAndSausage();
        System.out.println(pancake.getMessage() + " " + pancake.getPrice());

    }
}
